﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using F_DAL;
using F_MODEL;
namespace F_BLL
{
   public  class UserInfoBll
    {
       F_DAL.UserInfoDal us = new UserInfoDal();
       public List<UserInfo> UserInfoMoneySel(int userId)
       {
           return us.UserInfoMoneySel(userId);
       }

       /// <summary>
       /// 关于我们
       /// </summary>
       /// <returns></returns>
       public List<About> AboutUsList()
       {
           return us.AboutUsList();
       }

       /// <summary>
       /// 飞人个人中心
       /// </summary>
       /// <param name="id">用户编号</param>
       /// <returns></returns>
       public List<UserInfo> UserInfo_EditShow(int id)
       {
           return us.UserInfo_EditShow(id);
       }

       /// <summary>
       /// 意见反馈添加
       /// </summary>
       /// <param name="back">问题</param>
       /// <param name="img">图片</param>
       /// <param name="pho">手机号</param>
       /// <returns></returns>
       public int Opinions_ADD(string back, string img, string pho)
       {
           return us.Opinions_ADD(back, img, pho);
       }

       // //根据ID编号来显示不同的问题
       public Problems problems_show(int P_ID)
       {
           return us.problems_show(P_ID);
       }

       //显示
       public List<Problems> problems_index()
       {
           return us.problems_index();
       }

       /// <summary>
       /// 成为飞人
       /// </summary>
       /// <param name="fm">FlyMan  成为飞人需要的数据</param>
       /// <returns>是否成功</returns>
       public int UserBeFlyMan_zsh(Tool_BeFlyMan_zsh fm)
       {
           return us.UserBeFlyMan_zsh(fm);
       }

       /// <summary>
       /// 用户登录  用手机号和密码验证
       /// </summary>
       /// <param name="usertel">手机号码</param>
       /// <param name="password">密码</param>
       /// <returns></returns>
       public UserInfo zyl_Login_dal(string usertel, string password)
       {
           return us.zyl_Login_dal(usertel, password);
       }
       /// <summary>
       /// 注册
       /// </summary>
       /// <param name="usertel">联系方式</param>
       /// <param name="password">密码</param>
       /// <returns></returns>
       public int zyl_Regist_dal(string usertel, string password)
       {
           return us.zyl_Regist_dal(usertel, password);
       }
       /// <summary>
       /// 修改密码
       /// </summary>
       /// <param name="usertel">联系方式</param>
       /// <param name="password">密码</param>
       /// <returns></returns>
       public int zyl_UpdatePwd_dal(string usertel, string password)
       {
           return us.zyl_UpdatePwd_dal(usertel, password);
       }

    }
}
